#!/usr/bin/env ruby

require File.join(File.dirname(__FILE__), *%w".. config boot")

filename   = File.join(BOT_ROOT, BOT_CONFIG[:tcl_options][:filename] || "state.dat")
connection = TclBot::Connection.new(
  BOT_CONFIG[:connection][:server],
  BOT_CONFIG[:connection][:port],
  BOT_CONFIG[:irc_options].merge(:filename => filename)
)

connection.start
